﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="contents_list.aspx.cs"
    Inherits="He.Web.manage.settings.contents_list" %>

<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>单页列表</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server"  ID="uchead_list" />
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="contents_edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Add %>&lang=<%=lang %>">
            增加单页</a></span> <b>您当前的位置：首页 &gt; 控制面板 &gt; 单页模块</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="50" align="center">
                请选择：
            </td>
            <td>
                <asp:DropDownList ID="ddlChannelId" runat="server" CssClass="select" AutoPostBack="True"
                    OnSelectedIndexChanged="ddlChannelId_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td width="50" align="right">
                关健字：
            </td>
            <td width="150">
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
            </td>
            <td width="60" align="center">
                <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="submit" OnClick="btnSelect_Click" />
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <tr>
                    <th width="5%">
                        选择
                    </th>
                    <th width="5%">
                        编号
                    </th>
                    <th width="5%">
                        别名
                    </th>
                    <th>
                        单页标题
                    </th>
                    <th width="15%">
                        所属类别
                    </th>
                    <th width="7%">
                        系统保护
                    </th>
                    <th width="10%">
                        排序
                    </th>
                    <th width="5%">
                        操作
                    </th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="Check" CssClass="checkall" runat="server"></asp:CheckBox>
                    </td>
                    <td>
                        <asp:Label ID="lb_id" runat="server" Text='<%#Eval("Id")%>'></asp:Label>
                    </td>
                    <td><%#Eval("name") %></td>
                    <td>
                        <a href='contents_edit.aspx?id=<%#Eval("Id") %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&lang=<%=lang %>'>
                            <%#Eval("title") %></a>
                    </td>
                    <td>
                        <%#GetCategorylTitle(Eval("category_id")) %>
                    </td>
                    <td>
                        <%#Convert.ToInt32(Eval("is_sys")) == 1 ? "<img title=\"已保护\" src=\"../images/correct.gif\" />":"<image title=\"未保护\" src=\"../images/disable.gif\" />" %>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="txtInput2 small2"
                            onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" />
                    </td>
                    <td>
                        <a href='contents_edit.aspx?id=<%#Eval("Id") %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&lang=<%=lang %>'>
                            修改</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <%=He.Web.UI.HtmlHelper.PagerText(pcount, pageSize, page, "?"+Comb_UrlTxt(this.channel_id,this.keywords)+"&page=__id__")%>
        <div class="left">
            <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
                <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');">批量删除</asp:LinkButton></span>
            <span class="btn_bg">
                <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">保存排序</asp:LinkButton></span>
        </div>
    </div>
    </form>
</body>
</html>
